package com.example.advice;

import java.util.concurrent.atomic.AtomicInteger;

import net.bytebuddy.asm.Advice;

//定义构造函数通知
public class ConstructorAdvice {
	@Advice.OnMethodExit
	public static void onMethodExit(@Advice.FieldValue(value = "counter", readOnly = false) AtomicInteger counter) {
		counter = new AtomicInteger();
	}
}